<?php
/**
 *  微信公众号网页活动相关
 */
// 获取公众号appid,给前端公众号授权使用
Route::any('activity.official.account.appid', 'activity/Sign/officialAccountAppId');
// 获取jssdk签名
Route::any('activity.sign.js-sdk', 'activity/Sign/jsSdk');
// 用户登录、注册、更换新token
Route::any('activity.sign.token', 'activity/Sign/token');
// 获取用户信息
Route::any('activity.member.info', 'activity/Member/info');
// 用户名密码登录
Route::any('activity.member.sign.in.by.password', 'activity/Sign/signInByPassword');
// 找回密码
Route::any('activity.member.sign.find.password', 'activity/Sign/findPassword');

// 通过授权缓存的用户信息key注册
Route::any('activity.member.sign.up.by.key', 'activity/Sign/registerByKey');
// 通过用户名绑定注册
Route::any('activity.member.sign.up.by.username', 'activity/Sign/registerByUsername');
// 通过手机验证码绑定
Route::any('activity.member.sign.up.by.mobile', 'activity/Sign/registerByMobile');
// 用户注册
Route::any('activity.member.register', 'activity/Sign/register');
// 获取当前微信端访问用户的openid
Route::any('activity.member.now.wechat.info', 'activity/Sign/getNowWechatUserInfo');
// 获取短信验证码
Route::any('activity.sms.auth.code', 'activity/Sms/authCode');
// 获取更换手机号码时的验证码
Route::any('activity.sms.code.for.change.mobile', 'activity/Sms/authCodeForChange');
// 绑定时获取手机验证码
Route::any('activity.sms.code.bind', 'activity/Sms/bindSmsCode');
// 找回密码时获取验证码
Route::any('activity.sms.code.find_password', 'activity/Sms/authCodeForFindPassword');
/******************************* 出行人相关 *****************************/
// 添加出行人
Route::any('activity.travel.people.add', 'activity/TravelPeople/add');
// 获取出行人列表
Route::any('activity.travel.people.items', 'activity/TravelPeople/items');
// 通过ID获取单条出行人信息
Route::any('activity.travel.people.info.by.id', 'activity/TravelPeople/infoById');
// 编辑出行人
Route::any('activity.travel.people.edit', 'activity/TravelPeople/edit');
// 删除出行人
Route::any('activity.travel.people.del', 'activity/TravelPeople/del');
/******************************* 首页数据相关 **********************************/
// 活动列表数据
Route::any('activity.home.items', 'activity/Home/activity');
// 获取首页轮播图
Route::any('activity.home.slide', 'activity/Home/slide');
// 定位获取信息
Route::any('activity.location.by.lng.lat', 'activity/Map/getLocationByLngLat');
/******************************* 活动相关  *******************************/
Route::any('activity.detail', 'activity/Activity/detail');
// 获取活动客服信息
Route::any('activity.customer', 'activity/Activity/customer');
// 根据团期ID获取上车点
Route::any('activity.collection.points.by.group.stage.id', 'activity/Activity/collectionPointsByGroupStageId');
// 活动活动团期报名数据
Route::any('activity.collection.points.travel', 'activity/Activity/collectionPointTravelByGroupStage');
/******************************* 订单相关  *******************************/
// 创建订单
Route::any('activity.order.create', 'activity/Order/create');
// 获取订单支付凭证
Route::any('activity.order.pay.voucher', 'activity/Pay/voucher');
// APP获取订单支付凭证
Route::any('activity.order.pay.voucher.app', 'activity/Pay/appPayVoucher');
// 微信支付同步回调
Route::any('activity.order.pay.sync', 'activity/Pay/paySync');
// app支付同步回调
Route::any('activity.order.pay.sync.app', 'activity/Pay/appPaySync');
// 获取不同状态的订单数量
Route::any('activity.order.total', 'activity/Order/total');
// 获取最新出现订单
Route::any('activity.order.new.items', 'activity/Order/newOrderItems');
// 获取订单列表
Route::any('activity.order.items', 'activity/Order/items');
// 获取订单详情
Route::any('activity.order.detail', 'activity/Order/detail');
// 取消支付订单
Route::any('activity.order.cancel.by.not.pay', 'activity/Order/cancelByNotPay');
// 订单未支付时取消出行人
Route::any('activity.order.cancel.travel.by.not.pay', 'activity/Order/cancelTravelByNotPay');
// 取消出行人(已支付)
Route::any('activity.order.cancel.travel.by.pay', 'activity/Order/cancelTravelByPay');
// 申请取消已支付订单
Route::any('activity.order.cancel.pay', 'activity/Order/cancelByPay');
/******************************* 用户相关  *******************************/
// 设置用户昵称
Route::any('activity.member.set.nickname', 'activity/Member/setNickname');
// 设置用户名
Route::any('activity.member.set.username', 'activity/Member/setUsername');
// 设置密码
Route::any('activity.member.set.password', 'activity/Member/setPassword');
// 设置密码
Route::any('activity.member.edit.password', 'activity/Member/editPassword');
// 绑定手机号码
Route::any('activity.member.bind.mobile', 'activity/Member/bindMobile');
// 用户登录之后获取验证码
Route::any('activity.member.get.code', 'activity/Member/getCode');
// 更换手机号码
Route::any('activity.member.change.mobile', 'activity/Member/changeMobile');
/******************************* 支付相关  *******************************/
// 微信支付异步回调
Route::any('activity.pay.notify.async', 'activity/PayNotify/wechatPayAsync');
// 支付宝活动支付异步回调
Route::any('activity.activity.alipay.notify.async', 'activity/PayNotify/activityAliPayAsync');
// 微信退款异步回调
Route::any('activity.order.refund.async', 'activity/PayNotify/wechatRefundAsync');
// h5支付
Route::any('activity.h5.pay', 'activity/H5/pay');
// 检测微信支付是否完成
Route::any('activity.h5.check.wechat.pay', 'activity/H5/checkWechatPay');
// 支付支付同步回调
Route::any('activity.h5.alipay.sync', 'activity/H5/alipaySync');
// 支付支付同步回调
Route::any('activity.h5.wechat.sync', 'activity/H5/wechatPayH5Sync');
/******************************** APP 登录注册相关  *************************/
// 检测APP端unionID是否已经注册
Route::any('activity.member.sign.check.unionid.for.native', 'activity/Sign/checkUnionIdForNative');
// APP端微信直接注册
Route::any('activity.member.sign.up.for.native', 'activity/Sign/registerForNative');
// APP端授权并绑定手机号码
Route::any('activity.member.sign.up.by.mobile.for.native', 'activity/Sign/registerByMobileForNative');
// APP端通过用户名密码绑定
Route::any('activity.member.sign.up.by.username.for.native', 'activity/Sign/registerByUsernameForNative');
/******************************* 版本检测 *****************************/
// 资源版本检测升级
Route::any('app.version.check.wgt', 'activity/Version/checkWgt');
// 版本检测
Route::any('app.version.check', 'activity/Version/check');

// APP微信登录时获取用户信息
Route::any('app.sign.auth.userinfo', 'activity/Sign/getUserInfoByAppWechatAuth');

/******************************** 区域相关  *************************/
Route::any('activity.area.items', 'activity/Area/items');
// APP余额充值
Route::any('app.recharge', 'activity/Recharge/rechargeByApp');
// h5余额充值
Route::any('h5.recharge', 'activity/Recharge/rechargeByH5');
Route::any('wechat.recharge', 'activity/Recharge/rechargeByWechat');
// h5移动端微信支付同步回调
Route::any('h5.recharge.pay.sync', 'activity/H5/wechatPayRechargeH5Sync');
// APP余额充值同步回调
Route::any('app.recharge.sync', 'activity/Recharge/rechargeByAppSync');
// 微信余额充值异步回调
Route::any('recharge.wechat.async', 'activity/PayNotify/rechargeByWeChatAsync');
// 支付宝余额充值异步回调
Route::any('recharge.alipay.async', 'activity/PayNotify/rechargeByWeChartAsync');